package factory;

import com.jme3.system.AppSettings;
import de.bomberman.appstate.MainApp;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;

/**
 *
 * @author Mats
 */
public class AppSettingsFactory {

    // Logger
    private static final Logger logger = Logger.getLogger(AppSettingsFactory.class.getName());

    public static AppSettings getAppSettings() {
        AppSettings mySettings = new AppSettings(true);
        mySettings.setResolution(1280, 720);
        mySettings.setDepthBits(24);
        mySettings.setSamples(32);
        mySettings.setFrameRate(60);
        mySettings.setTitle("Bomberman");
        try {
            mySettings.setIcons(new BufferedImage[]{ImageIO.read(new File("assets/Interface/splashScreen.png"))});
        } catch (IOException ex) {
            Logger.getLogger(MainApp.class.getName()).log(Level.SEVERE, null, ex);
        }
        mySettings.setSettingsDialogImage("Interface/splashScreen.png");
        return mySettings;
    }
}
